package feishuUtil

import (
	"fmt"
	"go-api-template/service"
	"strings"
)

type DriverI interface {
	DownloadFile(fileToken string) error
}

func (fc *FeishuClient) DownloadFile(fileToken string) (err error) {
	get, err := fc.request("GET", fmt.Sprintf("/open-apis/drive/v1/medias/batch_get_tmp_download_url?file_tokens=%s", fileToken), strings.NewReader(""))

	service.Log.Debug(string(get))
	return err
}
